<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a="http://richfaces.org/a4j">

	
	<ui:composition template="/layout/template.xhtml">
	  
	
	
		<ui:define name="body">
		
    <a:outputPanel id="messagePanel">
          <rich:messages   styleClass="message"/>
    </a:outputPanel>
		
		<a:form id="calisanForm" ajaxSubmit="true" prependId="false">
		 <rich:tabPanel  switchType="client" id="tabpanelId"   selectedTab="calisanTabId">
             
              <rich:tab  id="calisanTabId" name="calisanTabId"   labelWidth="150px" ajaxSingle="true" >              
                 
               <f:facet name="label">
               <h:panelGroup>                                
                        <a:commandLink actionListener="#{calisanDao.removeDelete}" style="position:absolute;left:10px;" ajaxSingle="true">                         
                            <h:graphicImage  value="/images/modal/close.png" />                          
                        </a:commandLink>
                         <h:outputText style="font-weight:900;" value="#{messages['calisam.bilgi']}" escape="false"/>
                </h:panelGroup>          
                </f:facet>
        
              
              
                 <ui:include src="/calisan/calisan.xhtml"  />                        
              </rich:tab>
           
        
           
            
          </rich:tabPanel>
          
           <div class="actionButtons">
           
            <a:commandButton ajaxSingle="true" value="Adres Ekle" action="#{calisanDao.addTabPanel()}"   reRender="messagePanel,tabpanelId" eventsQueue="test" />
                          
      
           </div>
          
        </a:form>	
        
        <a:status onstart="#{rich:component('wait')}.show()"
			onstop="#{rich:component('wait')}.hide()" />
		<rich:modalPanel id="wait" autosized="true" width="200" height="120"
			moveable="false" resizeable="false">
			<f:facet name="header">
				<h:outputText value="#{messages['listesi.islemYapiliyor']}"/>
			</f:facet>
			<h:outputText value="#{messages['listesi.lutfenBekleyiniz']}"/>
		</rich:modalPanel>
        
        
     </ui:define>
           
         
		
	</ui:composition>

</html>